package personresources.manager.jsfTag;

import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentTag;

/**
 * 
 * @author Duy Chuong
 *
 */
@SuppressWarnings("deprecation")
public class UITickerTag extends UIComponentTag{

	private String value;
	private String style;
	

	

	@Override
	public void release() {
		super.release();
		this.value = null;
		this.style = null;
	}

	
	
	@Override
	protected void setProperties(UIComponent component) {
		super.setProperties(component);
		if (value != null) {
			component.getAttributes().put("value", value);
		}
		if (style != null) {
			component.getAttributes().put("style", style);
		}
	}



	@Override
	public String getComponentType() {
		return "ticker";
	}

	@Override
	public String getRendererType() {
		return null;
	}
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}
	
}
